package com.steadyoung.modelapp.adapter;

import com.chad.library.adapter.base.BaseQuickAdapter;
import com.chad.library.adapter.base.BaseViewHolder;
import com.steadyoung.modelapp.R;
import com.wang.avi.AVLoadingIndicatorView;

import java.util.List;

/**
 * Created by Administrator on 2017/12/4.
 * Email : steadyoung@foxmail.com
 * Auth  : wayne
 * Desc  : TODO
 */

public class LoadingAdapter extends BaseQuickAdapter<String,BaseViewHolder> {
    public LoadingAdapter(List<String> datas) {
        super(R.layout.item_loading_view,datas);
    }

    @Override
    protected void convert(BaseViewHolder helper, String item) {
        AVLoadingIndicatorView avLoadingIndicatorView = helper.getView(R.id.av_loading);
        avLoadingIndicatorView.setIndicator(item);
    }
}
